home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Win2K TCPIP Sec 2.xpl < prev    next >
Text File  |  2001-05-08  |  2KB  |  59 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="2"
  4. "UIPATH"="Network\TCP/IP Hardening
  5. "NAME"="SYN Attack Protection Triggers"
  6. "OSVERSION"="000101"
  7. "WARNING"="1"
  8. "VERSION"="1.10"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="SYN Trigger"
  11. "TEXT 2"="Retried Trigger"
  12. "DESCRIPTION 1"="These triggers control when SYN Attack Protection should beginn to work."
  13. "DESCRIPTION 2"="The first trigger controls how many SYN requests should be allowed before SYN Attack Protection begins to operate."
  14. "DESCRIPTION 3"="The second trigger controls how many unsuccessfully retries (at least one) should be allowed for SYN requests before SYN Attack Protection begins to operate. Please note: The trigger does not specify how many TIMES a SYN retry should take place, but how many retried SYN requests at one time are allowed!"
  15. "DESCRIPTION 4"="There is no "best use" values for these settings but a unsuccessfully SYN request is very, very rare so the second trigger should be really low."
  16. "DESCRIPTION 5"="The default setting for the first trigger is 100 (500 for Advanced Server) and for the second trigger 80 (400 for Advanced Server)."
  17. "DESCRIPTION 6"="To restore the default value, clear the field."
  18. "AUTHOR"="Xteq Systems"
  19. "CONTACTURL"="http://www.xteq.com/"
  20. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  21. "COMMENT 1"=" "
  22.  
  23.  
  24. sP1="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\TcpMaxHalfOpen"
  25. sP2="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\TcpMaxHalfOpenRetried"
  26.  
  27. Sub Plugin_Initialize 
  28.  s=RegReadValue(sP1)
  29.  SetUIElement 1,s
  30.  
  31.  s=RegReadValue(sP2)
  32.  SetUIElement 2,s
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  s=GetUIElement(1)
  40.  if len(s)=0 then
  41.     If RegValueExists(sP1) then RegDeleteValue(sP1)
  42.  else
  43.     Call RegWriteValue(sP1,s,2)
  44.  end if
  45.  
  46.  s=GetUIElement(2)
  47.  if len(s)=0 then
  48.     If RegValueExists(sP2) then RegDeleteValue(sP2)
  49.  else
  50.     Call RegWriteValue(sP2,s,2)
  51.  end if
  52.  
  53.  
  54.  Call Restart()
  55. End Sub
  56.  
  57. Sub Plugin_Terminate 
  58. End Sub
  59.